package org.jarraiders.musiclibrary.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class EditTrackEvent extends GwtEvent<EditTrackEventHandler>{
  public static Type<EditTrackEventHandler> TYPE = new Type<EditTrackEventHandler>();
  private final String id;
  
  public EditTrackEvent(String id) {
    this.id = id;
  }
  
  public String getId() { return id; }
  
  @Override
  public Type<EditTrackEventHandler> getAssociatedType() {
    return TYPE;
  }

  @Override
  protected void dispatch(EditTrackEventHandler handler) {
    handler.onEditTrack(this);
  }
}
